package Administrator.AdministratorMainFrame.AdministratorMainFrameModel;

import Packet.*;

import Administrator.AdministratorMainFrame.AdministratorMainFrameModel.*;

import java.io.*;

public class SendPacket
{
    public SendPacket(Packet packet, Thread thread)
    {
    	try
    	{
    		((AdministratorThread)thread).getOutputStream().writeObject(packet);
    	}
    	catch(IOException exception)
    	{
    	    exception.printStackTrace();
    	}
    }
}
